package com.wangjiyuan.giftshuo.ui.fragment.listtop.interfaces;

import com.wangjiyuan.giftshuo.bean.listtopbean.commentbean.CommentBean;
import com.wangjiyuan.giftshuo.bean.listtopbean.everydaybean.EveryDayBean;
import com.wangjiyuan.giftshuo.bean.listtopbean.everydaybean.ItemBean;
import com.wangjiyuan.giftshuo.bean.listtopbean.maybelikebean.MayBeLikeBean;
import com.wangjiyuan.giftshuo.bean.listtopbean.singleproductbean.SingleProductBean;
import com.wangjiyuan.giftshuo.ui.fragment.listtop.message.UrlMessage;

import java.util.List;
import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;
import rx.Observable;

/**
 * Created by ZangSyeriong on 2016/11/16.
 *
 * Retrofit接口
 * 通过接口获得网络数据源数据的方法
 */

public interface ListTopRetrofitInterface {

    @GET(UrlMessage.Path.EVERYDAY_PATH_URL)
    Observable<EveryDayBean> getEveryDayData(@Path("path")int path,
                                             @QueryMap()Map<String, String> params);

    @GET(UrlMessage.Path.RECOMMEND_PATH_URL)
    Observable<MayBeLikeBean> getMayBeLikeData(@Path("path")int path);

    @GET(UrlMessage.Path.COMMEND_PATH_URL)
    Observable<CommentBean> getCommentData(@Path("path")int path);

    @GET(UrlMessage.Path.SINGLEPRODUCT_PATH_URL)
    Observable<SingleProductBean> getSingleProductData(@Path("path")int path);
}
